import request from '@/utils/request'
// 办理住院
export function hospitalRegisterSave(params) {
    return request({
        url: `/ybh/hospitalRegisterSave`,
        method: "POST",
        params
    })
}

// 住院撤销
export function hospitalRegisterCancel(params) {
    return request({
        url: `/ybh/hospitalRegisterCancel`,
        method: "POST",
        params
    })
}

// 入院信息变更
export function hospitalRegisterEdit(params) {
    return request({
        url: `/ybh/hospitalRegisterEdit`,
        method: "POST",
        params
    })
}

// 住院费用明细上传
export function hospFeeDtlUp(params) {
    return request({
        url: `/ybh/hospFeeDtlUp`,
        method: "POST",
        params
    })
}

// 住院费用撤销
export function hospFeeDtCl(params) {
    return request({
        url: `/ybh/hospFeeDtCl`,
        method: "POST",
        params
    })
}



// 转院备案撤销
export function hosTransferApplyCancel(params) {
    return request({
        url: `/ybh/hosTransferApplyCancel`,
        method: "POST",
        params
    })
}

// 出院办理
export function dischargeProcess(params) {
    return request({
        url: `/ybh/dischargeProcess`,
        method: "POST",
        params
    })
}

// 出院预结算
export function hospSettPreSett(params) {
    return request({
        url: `/ybh/hospSettPreSett`,
        method: "POST",
        params
    })
}

//出院结算
export function hospSettA(params) {
    return request({
        url: `/ybh/hospSettA`,
        method: "POST",
        params
    })
}
//出院撤销
export function dischargeUndo(params) {
    return request({
        url: `/ybh/dischargeUndo`,
        method: "POST",
        params
    })
}


//住院结算撤销
export function settCl(params) {
    return request({
        url: `/ybh/settCl`,
        method: "POST",
        params
    })
}
//医疗保障基金结算清单信息上传
export function uploadMedinfo(params) {
    return request({
        url: `/ybh/uploadMedinfo`,
        method: "POST",
        params
    })
}
//获取病区（床位）
export function getAllIcu(params) {
    return request({
        url: `/sysbuild/getAllIcu`,
        method: "GET",
        params
    })
}
//住院获取已分配床位和未分配床位列表
export function getAllBedList(params) {
    return request({
        url: `/hospitalization/getAllBedList`,
        method: "GET",
        params
    })
}
//住院分床(护士用)
export function distributeBed(params) {
    return request({
        url: `/hospitalization/distributeBed`,
        method: "POST",
        params
    })
}
//医保数据字典
export function dictDownload(params) {
    return request({
        url: `/common/dictDownload`,
        method: "GET",
        params
    })
}
//获取数据字典
export function dictIndex(params) {
    return request({
        url: `/dict_data/dictIndex`,
        method: "GET",
        params
    })
}
//获取树形结构
export function groupIndex(params) {
    return request({
        url: `/dict_data/groupIndex`,
        method: "GET",
        params
    })
}
// 添加字典
export function store(params) {
    return request({
        url: `/dict_data/store`,
        method: "POST",
        params
    })
}
//编辑字典
export function save(params) {
    return request({
        url: `/dict_data/save`,
        method: "POST",
        params
    })
}
//删除字典
export function delsave(params) {
    return request({
        url: `/dict_data/del`,
        method: "POST",
        params
    })
}
//同步字典
export function syncYbDict(params) {
    return request({
        url: `/dict_data/syncYbDict`,
        method: "POST",
        params
    })
}
//医药机构费用结算对总 账
export function checkSettlement(params) {
    return request({
        url: `/clinic_fee/checkSettlement`,
        method: "POST",
        params
    })
}
//住院结算清单单据打印
export function printHospita(params) {
    return request({
        url: `/ybh/printHospita`,
        method: "POST",
        params
    })
}

//人员待遇享受检查
export function queryPsnPriority(params) {
    return request({
        url: `/ybh/queryPsnPriority`,
        method: "POST",
        params
    })
}
//获取所有病区
export function getBuild(params) {
    return request({
        url: `sysbuild/getBuild`,
        method: "get",
        params
    })
}
//预交押金
export function createDepositOrder(params) {
    return request({
        url: `/hospitalization/createDepositOrder`,
        method: "POST",
        params
    })
}
//退款
export function refundDeposit(params) {
    return request({
        url: `/hospitalization/refundDeposit`,
        method: "POST",
        params
    })
}
//押金明细
export function getDeposiDetail(params) {
    return request({
        url: `/hospitalization/getDeposiDetail`,
        method: "GET",
        params
    })
}
//住院撤销
export function cancelHospital(params) {
    return request({
        url: `/hospitalization/cancelHospital`,
        method: "POST",
        params
    })
}
//读取病人详情
export function readHospitalMemberDetail(params) {
    return request({
        url: `/hospitalization/readHospitalMemberDetail`,
        method: "GET",
        params
    })
}
//设置饮食种类
export function setFood(params) {
    return request({
        url: `/hospitalization/setFood`,
        method: "POST",
        params
    })
}
//获取护理等级

export function getNurseLevel(params) {
    return request({
        url: `/hospitalization/getNurseLevel`,
        method: "GET",
        params
    })
}
//设置护理等级
export function setNurseLevel(params) {
    return request({
        url: `/hospitalization/setNurseLevel`,
        method: "POST",
        params
    })
}

//住院信息修改
export function update(params) {
    return request({
        url: `/hospitalization/update`,
        method: "POST",
        params
    })
}
//获取病人
export function getHospitalMember(params) {
    return request({
        url: `/hospitalization/getHospitalMember`,
        method: "GET",
        params
    })
}
//申请出院
export function dischargeHospital(params) {
    return request({
        url: `/hospitalization/dischargeHospital`,
        method: "POST",
        params
    })
}
//取消出院申请
export function cancelDischargeHospital(params) {
    return request({
        url: `/hospitalization/cancelDischargeHospital`,
        method: "POST",
        params
    })
}

//提交出院
export function submitHospital(params) {
    return request({
        url: `/hospitalization/submitHospital`,
        method: "POST",
        params
    })
}
//撤销提交出院
export function cancelDischarge(params) {
    return request({
        url: `/hospitalization/cancelDischarge`,
        method: "POST",
        params
    })
}
//撤销出院
export function cancelSubmitHospital(params) {
  return request({
    url: `/hospitalization/cancelSubmitHospital`,
    method: "POST",
    params
  })
}
//
export function getAdviceDrug(params) {
    return request({
        url: `/hospitalization/getAdviceDrug`,
        method: "GET",
        params
    })
}
//医嘱费用项
export function getAdviceFee(params) {
    return request({
        url: `/hospitalization/getAdviceFeeItem`,
        method: "GET",
        params
    })
}

//医生  开立医嘱
export function createAdvice(params) {
    return request({
        url: `/advice/createAdvice`,
        method: "post",
        params
    })
}
//医生  获取医嘱
export function getAdviceList(params) {
    return request({
        url: `/advice/getAdviceList`,
        method: "get",
        params
    })
}
//费用列表
export function feeIndex(params) {
    return request({
        url: `/clinic_fee/feeIndex`,
        method: "get",
        params
    })
}
//费用记录列表
export function costRecord(params) {
    return request({
        url: `/hospitalization/costRecord`,
        method: "get",
        params
    })
}
export function deposiLog(params) {
    return request({
        url: `/hospitalization/deposiLog`,
        method: "get",
        params
    })
}

//变更记录
export function getHospitalizationChangeRecord(params) {
    return request({
        url: `/hospitalization/getHospitalizationChangeRecord`,
        method: "get",
        params
    })
}

//执行记录
export function getExecutionList(params) {
    return request({
        url: `/advice/getExecutionList`,
        method: "get",
        params
    })
}
//医嘱撤销 提交
export function updateAdvice(params) {
    return request({
        url: `/advice/updateAdvice`,
        method: "POST",
        params
    })
}
//医嘱撤销 提交
export function updateAdviceStatus(params) {
    return request({
        url: `/advice/updateAdviceStatus`,
        method: "POST",
        params
    })
}
//医嘱作废
export function toVoidAdvice(params) {
    return request({
        url: `/advice/toVoidAdvice`,
        method: "POST",
        params
    })
}
//删除医嘱
export function deleteAdvice(params) {
    return request({
        url: `/advice/deleteAdvice`,
        method: "POST",
        params
    })
}

//撤销 停止医嘱
export function doctorStopAdvice(params) {
    return request({
        url: `/advice/doctorStopAdvice`,
        method: "POST",
        params
    })
}
//出院  结账
export function dischargeSettlement(params) {
    return request({
        url: `/hospitalization/dischargeSettlement`,
        method: "POST",
        params
    })
}
// 诊断列表
export function getDiagonsis(params) {
    return request({
        url: `/hospitalization/getDiagonsis`,
        method: "GET",
        params
    })
}

//诊断编辑新增
export function saveDiagonsis(params) {
    return request({
        url: `/hospitalization/saveDiagonsis`,
        method: "POST",
        params
    })
}
//住院医嘱记录
export function hospOrdUpload(params) {
    return request({
        url: `ybh/hospOrdUpload`,
        method: "GET",
        params
    })
}
//临床检查报告记录
export function clncExamRcdUpld(params) {
    return request({
        url: `ybh/clncExamRcdUpld`,
        method: "GET",
        params
    })
}
//细菌培养报告记录
export function clncTestUpld(params) {
    return request({
        url: `ybh/clncTestUpld`,
        method: "GET",
        params
    })
}

//药敏记录报告记录
export function bctlClteRpotRcdUpld(params) {
    return request({
        url: `ybh/bctlClteRpotRcdUpld`,
        method: "GET",
        params
    })
}
//护理操作生命体征测量记录
export function saveNursOprtRcdCClient(params) {
    return request({
        url: `ybh/saveNursOprtRcdCClient`,
        method: "GET",
        params
    })
}

//住院病案上传
export function iptInfoUpload(params) {
    return request({
        url: `ybh/iptInfoUpload`,
        method: "GET",
        params
    })
}
//电子病例上传
export function insertFixmedinsMedrcdInfo(params) {
    return request({
        url: `ybh/insertFixmedinsMedrcdInfo`,
        method: "GET",
        params
    })
}
//获取医保获取
export function getHospitalDetail(params) {
    return request({
        url: `ybh/getHospitalDetail`,
        method: "GET",
        params
    })
}
//获取医保获取
export function medinsMonSetlAppyClient(params) {
    return request({
        url: `ybh/medinsMonSetlAppyClient`,
        method: "GET",
        params
    })
}
//转院
export function hosTransferApply(params) {
    return request({
        url: `/ybh/hosTransferApply`,
        method: "POST",
        params
    })
}
//获取医疗机构信息
export function getOrgInfo(params) {
    return request({
        url: `/common/getOrgInfo`,
        method: "post",
        params
    })
}
//获取床位
export function getBed(params) {
    return request({
        url: `/sysbuild/getBed`,
        method: "GET",
        params
    })
}
//获取医保  用户信息
export function getInfo(params) {
    return request({
        url: `/member/getInfo`,
        method: "GET",
        params
    })
}
//获取医保  上传信息
export function getQdInfo(params) {
    return request({
        url: `/ybh/getQdInfo`,
        method: "GET",
        params
    })
}
//病种
export function getDiseaseSpecieDict(params) {
    return request({
        url: `/drug_ybdict/getDiseaseSpecieDict`,
        method: "GET",
        params
    })
}
//获取冲正
export function getRighting(params) {
    return request({
        url: `/ybh/getRighting`,
        method: "GET",
        params
    })
}
//冲正
export function postRighting(params) {
    return request({
        url: `/ybh/postRighting`,
        method: "GET",
        params
    })
}
//
export function deleteDiagonsis(params) {
    return request({
        url: `/hospitalization/deleteDiagonsis`,
        method: "POST",
        params
    })
}

//下载住院
export function downHospReport(params) {
    return request({
        url: `/ybh/downHospReport`,
        method: "POST",
        params
    })
}
//下载商保
export function downHospSbReport(params) {
  return request({
    url: `/ybh/downHospSbReport`,
    method: "POST",
    params
  })
}
//医生工作站获取病人病历列表/查看病历
export function getMemberMedicalList(params) {
    return request({
        url: `/hospitalization/getMemberMedicalList`,
        method: "GET",
        params
    })
}
//查看房间等级下的项目
export function getRoomLevelProject(params) {
    return request({
        url: `/sysbuild/getRoomLevelProject`,
        method: "GET",
        params
    })
}
//删除房间等级下的项目
export function deleteRoomLevelProject(params) {
    return request({
        url: `/sysbuild/deleteRoomLevelProject`,
        method: "POST",
        params
    })
}
//添加
export function createRoomLevelProject(params) {
    return request({
        url: `/sysbuild/createRoomLevelProject`,
        method: "POST",
        params
    })
}
//转住院
export function transferHospital(params) {
    return request({
        url: `/hospitalization/transferHospital`,
        method: "POST",
        params
    })
}
//离院带药
export function doctorStopAllAdvice(params) {
    return request({
        url: `/advice/doctorStopAllAdvice`,
        method: "POST",
        params
    })
}

//病历记录
export function refundFee(params) {
    return request({
        url: `/hospitalization/refundFee`,
        method: "post",
        params
    })
}
export function categoryIndex(params) {
    return request({
        url: `/service_fee/categoryIndex`,
        method: 'get',
        params
    })
}
export function getFeeCate(params) {
    return request({
        url: `/hospitalization/getFeeCate`,
        method: 'get',
        params
    })
}
export function getFeeDetail(params) {
    return request({
        url: `/hospitalization/getFeeDetail`,
        method: 'get',
        params
    })
}

//删除病历
export function deleteMemberMeical(params) {
    return request({
        url: `/hospitalization/deleteMemberMeical`,
        method: 'post',
        params
    })
}

//获取退费列表
export function getFeeDetailByHospitalId(params) {
    return request({
        url: `/hospitalization/getFeeDetailByHospitalId`,
        method: 'get',
        params
    })
}
export function backRefundFee(params) {
    return request({
        url: `/hospitalization/backRefundFee`,
        method: 'POST',
        params
    })
}
//费用  汇总
export function costGroupRecord(params) {
    return request({
        url: `/hospitalization/costGroupRecord`,
        method: 'get',
        params
    })
}

//获取医嘱术语
export function shuyugetList(params) {
    return request({
        url: `/doctor_entrust/getList`,
        method: 'get',
        params
    })
}

//费用  汇总
export function getMemberCash(params) {
    return request({
        url: `/hospitalization/getMemberCash`,
        method: 'get',
        params
    })
}

//
// export function settCl(params) {
//     return request({
//         url: `/ybh/settCl`,
//         method: 'get',
//         params
//     })
// }

//住院结算清单
export function printAdvice(params) {
    return request({
        url: `/print_hospital/printAdvice`,
        method: 'get',
        params
    })
}
//住院结算清单
export function exportHospitalInfo(params) {
    return request({
        url: `/upload/exportHospitalInfo`,
        method: 'get',
        params
    })
}
//风险等级
export function setRiskLevel(params) {
    return request({
        url: `/hospitalization/setRiskLevel`,
        method: 'POST',
        params
    })
}
//保存  常用
export function collectAdvice(params) {
    return request({
        url: `/advice/collectAdvice`,
        method: 'POST',
        params
    })
}
//获取常用
export function getCollectAdvice(params) {
    return request({
        url: `/advice/getCollectAdvice`,
        method: 'GET',
        params
    })
}
//打印收据
export function printSettlement(params) {
    return request({
        url: `/print_hospital/printSettlement`,
        method: 'GET',
        params
    })
}
//下载结算清单
export function printHospitalFee(params) {
    return request({
        url: `/print_hospital/printHospitalFee`,
        method: 'GET',
        params
    })
}

//医技获取
export function getMyMedicalSkill(params) {
    return request({
        url: `/advice/getMyMedicalSkill`,
        method: 'get',
        params
    })
}
//删除常用
export function deleteCollectAdvice(params) {
    return request({
        url: `/advice/deleteCollectAdvice`,
        method: 'POST',
        params
    })
}
//删除常用
export function backOffDoctorStopAllAdvice(params) {
    return request({
        url: `/advice/backOffDoctorStopAllAdvice`,
        method: 'POST',
        params
    })
}
export function getuserinfo(params) {
    return request({
        url: `/readcard/readidcard`,
        method: 'get',
        params
    })
}
export function getuserinfo2(params) {
    return request({
        url: `/readcard/userinfo`,
        method: 'get',
        params
    })
}

//保存  门诊病历
export function saveMedicalRecord(params) {
    return request({
        url: `/clinic_doctor/saveMedicalRecord`,
        method: 'post',
        params
    })
}


export function readcard_sbkjs(params) {
    return request({
        url: `/readcard/sbkjs`,
        method: 'post',
        params
    })
}
//导出挂号
export function exportToExcel(params) {
    return request({
        url: `/register/exportToExcel`,
        method: 'get',
        params
    })
}

//导出挂号
export function clinic_fee_exportToExcel(params) {
    return request({
        url: `/clinic_fee/exportToExcel`,
        method: 'get',
        params
    })
}

//医保记录
export function getYbRecord(params) {
    return request({
        url: `/hospitalization/getYbRecord`,
        method: 'get',
        params
    })
}
//医保记录
export function exportHospitalDoctorInfo(params) {
    return request({
        url: `/statistic/exportHospitalDoctorInfo`,
        method: 'get',
        params
    })
}
//
export function readDzpz(params) {
    return request({
        url: `/readcard/readDzpz`,
        method: 'get',
        params
    })
}

export function getMemberMedicalList2(params) {
    return request({
        url: `/hospitalization/getMemberMedicalList`,
        method: 'get',
        params
    })
}
export function downChronicMember(params) {
    return request({
        url: `/member/downChronicMember`,
        method: 'get',
        params
    })
}
